Both 'out_remote' and 'out_ref' parameters already have the (allow-none)
annotation but that wasn't actually true.
{
gboolean ret = FALSE;
GMatchInfo *match = NULL;
- char *remote;
+ gs_free char *remote = NULL;
static gsize regex_initialized;
static GRegex *regex;
}
ret = TRUE;
- *out_remote = remote;
- *out_ref = g_match_info_fetch (match, 2);
+
+ gs_transfer_out_value (out_remote, &remote);
+ if (out_ref != NULL)
+ *out_ref = g_match_info_fetch (match, 2);
out:
if (match)
g_match_info_unref (match);